package alkaid.eis.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import alkaid.eis.sys.core.AbstractBaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 长文本
 *  
 * @author Lucky Yang
 * @since 0.0.1
 */
@Entity
@Getter
@Setter
@Table(name = "eis_sys_long_text")
public class LongText extends AbstractBaseEntity {
    
    /**
     * 引用id
     */
    @Column(updatable = false)
    private Long refId;

    /**
     * 内容
     */
    @Lob
    private String content;

    public LongText() {
    }

    public LongText(Long refId) {
        this.refId = refId;
    }

    public LongText(Long refId, String content) {
        this.refId = refId;
        this.content = content;
    } 
}
